home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / Stuff.h < prev   
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.3 KB  |  62 lines  |  [TEXT/CWIE]

  1. /* Stuff.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct EverythingEngine;
  10.  
  11. //----------
  12. struct Stuff {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mToolsHandle;
  17.     ControlHandle    mPopupsHandle;
  18.     ControlHandle    mFromValuesList2Handle;
  19.     ControlHandle    mFromMenuHandle;
  20.     ControlHandle    mListsHandle;
  21.     ControlHandle    mTextListHandle;
  22. };
  23. typedef struct Stuff Stuff;
  24.  
  25. //----------
  26. Stuff*        NewStuff ();
  27. void    DeleteStuff        (Stuff*        window);
  28.  
  29. //----------
  30. //static:
  31. void    Stuff_Create    (AMDoc*            inDoc,
  32.                              DDocData*        inData);
  33.  
  34. //public:
  35. void    Stuff_Init        (Stuff*    self);
  36. void    Stuff_Free        (Stuff*    self);
  37.  
  38. void    Stuff_Open        (Stuff*    self,
  39.                              AMDoc*            inDoc,
  40.                              DDocData*        inData);
  41. void    Stuff_Close    (Stuff*    self);
  42.  
  43. void    Stuff_Track        (Stuff*    self,
  44.                                  ControlHandle    whichControl,
  45.                                   short             whichPart,
  46.                                  Point            where);
  47. void    Stuff_MouseIn        (Stuff*    self,
  48.                                  Point            where,
  49.                                  short            modifiers);
  50. void    Stuff_TypeIn        (Stuff*    self,
  51.                                  char            ch);
  52. void    Stuff_ExitCurField    (Stuff*    self);
  53. void    Stuff_DataChanged    (Stuff*    self,
  54.                                  long            inDataID);
  55. void    Stuff_Resize        (Stuff*    self);
  56. void    Stuff_Scroll        (Stuff*    self,
  57.                                  short            newValue,
  58.                                  short            oldValue);
  59.  
  60. Boolean        Stuff_DoCommand    (Stuff*    self,
  61.                                      long            inCommand);
  62.